import {interaction} from '@/package/tools/interaction'

const dataObj = {
  value: '01',
  options: [
    {label: '选项卡一', value: '01'},
    {label: '选项卡二', value: '02'},
    {label: '选项卡三', value: '03'}
  ]
}

export default {
  name: '选项卡',
  icon: '/img/text/tab1.png',
  type: '选项卡',
  cptKey: 'widget-tab',
  width: 300,
  height: 50,
  dynamic: true,
  isHidden: false,
  options: {
    interaction,
    cptDataForm: {
      dataText: JSON.stringify(dataObj),
      dataSource: 1,
      pollTime: 0,
      sql: '',
      dataSourceId: '',
      dataSetId: '', // 数据集id
      dateSetName: '', // 数据集名称
      dataHandle: '' // 数据处理函数
    },
    attribute: {
      radius: 12,
      fontSize: 16,
      color: '#FFF',
      fontFamily: '微软雅黑',
      fontWeight: 'normal',
      backgroundColor: '#035C88',
      backgroundImage: '',

      active: {
        fontSize: 18,
        color: '#011c20',
        fontFamily: '微软雅黑',
        backgroundColor: '#07dbff',
        backgroundImage: '',
        fontWeight: 'normal',
      }
    }
  }
}
